package com.vertx.starter.mysql;

import lombok.Getter;

@Getter
public class DaoManager {

    private final MysqlConfig mysqlConfig;

    private final MysqlUtil mysqlUtil;

    private PlayerDao playerDao;

    public DaoManager(MysqlConfig mysqlConfig, MysqlUtil mysqlUtil) {
        this.mysqlConfig = mysqlConfig;
        this.mysqlUtil = mysqlUtil;
        init();
    }

    private void init() {
        playerDao = new PlayerDao(mysqlConfig.getConfigDbName(), mysqlUtil);
    }
}
